#include<iostream>
#include<cstdlib>
#include<memory>
#include"Socket.hpp"
#include"Poll_Server.hpp"
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        std::cerr<<"Usage: "<<argv[0]<<"+ port"<<std::endl;
        return 0;
    }
    uint16_t port = atoi(argv[1]);
    std::unique_ptr<PollServer> server = std::make_unique<PollServer>(port);
    server->InitServer();
    server->Loop();
    return 0;
}